package com.tjmc.tiomsresource.utils;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

/**
 * @author Luc
 * @version 1.0
 * @date 2020-05-14 14:04
 * 常量工具
 */
public class Constants {

    public static final int BATCH_SPLIT_SIZE = 3000;

    public static final Map<String, Object> ALARM_RULES = new HashMap<>();

    public static final Set<String> TPL_ALARM_NAMES = new HashSet<>();

    public static final Set<String> BUSI_TYPES = new HashSet<>();

    public static final Set<String> RADIO_BUSI_TYPES = new HashSet<>();

    public static final Set<String> JK_BUSI_TYPES = new HashSet<>();

    public static final Set<String> HPHX_BIG_SUBNETS = new HashSet<>();

    static {

        //光路断缆
        ALARM_RULES.put("ETH_LOS", null);
        ALARM_RULES.put("ETH_LINK_DOWN", null);

        //光路性能
        ALARM_RULES.put("IN_PWR_ABN", null);
        ALARM_RULES.put("OUT_PWR_ABN", null);
        ALARM_RULES.put("IN_PWR_HIGH_ABN", null);
        ALARM_RULES.put("IN_PWR_LOW_ABN", null);

        //网元脱管类
        ALARM_RULES.put("NE_COMMU_BREAK", null);
        ALARM_RULES.put("NE_NOT_LOGIN", null);

        //硬件类
        ALARM_RULES.put("BUS_ERR", null);
        ALARM_RULES.put("TEMP_OVER", null);

        TPL_ALARM_NAMES.add("ETH_LOS");
        TPL_ALARM_NAMES.add("ETH_LINK_DOWN");
        TPL_ALARM_NAMES.add("IN_PWR_ABN");
        TPL_ALARM_NAMES.add("OUT_PWR_ABN");
        TPL_ALARM_NAMES.add("IN_PWR_HIGH_ABN");
        TPL_ALARM_NAMES.add("IN_PWR_LOW_ABN");

        RADIO_BUSI_TYPES.add("5G");
        RADIO_BUSI_TYPES.add("LTE");
        RADIO_BUSI_TYPES.add("2G");
        JK_BUSI_TYPES.add("集团客户");
        BUSI_TYPES.addAll(RADIO_BUSI_TYPES);
        BUSI_TYPES.addAll(JK_BUSI_TYPES);
        BUSI_TYPES.add("动环");
        BUSI_TYPES.add("家庭宽带");
        BUSI_TYPES.add("OLT");

        HPHX_BIG_SUBNETS.add("HPNPCR2网管大厦-小成都道2AR6");
        HPHX_BIG_SUBNETS.add("HPNPCR2网管大厦-小成都道2AR7");
        HPHX_BIG_SUBNETS.add("HPNPCR2小成都道2-小白楼AR6");
        HPHX_BIG_SUBNETS.add("HPNPCR2小成都道2-小白楼AR7");
        HPHX_BIG_SUBNETS.add("HXNPCR1美都酒店-新围堤道AR11");
        HPHX_BIG_SUBNETS.add("HXNPCR1美都酒店-新围堤道AR15");
        HPHX_BIG_SUBNETS.add("HXNPCR1气象台路-新围堤道AR2");
        HPHX_BIG_SUBNETS.add("HXNPCR1气象台路-新围堤道AR5");
        HPHX_BIG_SUBNETS.add("HXNPCR1新围堤道-气象台路AR3");
        HPHX_BIG_SUBNETS.add("HXNPCR2洞庭路-黑牛城道AR15");
        HPHX_BIG_SUBNETS.add("HXNPCR2洞庭路-灰堆AR5");
        HPHX_BIG_SUBNETS.add("HXNPCR2梅江-黑牛城道AR1");
        HPHX_BIG_SUBNETS.add("HXNPCR2梅江-黑牛城道AR2");
        HPHX_BIG_SUBNETS.add("HXNPCR2梅江-黑牛城道AR7");
        HPHX_BIG_SUBNETS.add("HXPCR1体院北-新围堤道AR1");
    }



}
